package com.cxh.mchat.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cxh.mchat.bussiness.bean.UserContactsReqBean;
import com.cxh.mchat.user.bean.UserContactInfo;
import com.cxh.mchat.user.entity.UserContacts;

import java.util.List;

/**
 * <p>
 * 用户联系人 服务类
 * </p>
 *
 * @author cxh
 * @since 2021-12-30
 */
public interface IUserContactsService extends IService<UserContacts> {
    /**
     * 联系人详细信息
     * @param bussinssNo 账号
     * @return 详细信息
     */
    UserContactInfo queryContactsInfo(String bussinssNo);


    /**
     * 查找联系人
     * @param reqBean
     * @return
     */
    List<UserContacts> query(UserContactsReqBean reqBean);

    /**
     * 添加好友
     * @param reqBean
     * @return
     */
    Boolean add(UserContacts reqBean);
}
